GenerateSNs

SoftwareShield CheckPoint™ License Server > CheckPoint™ License Server Interfaces > CheckPoint_Webservice_References > GenerateSNs

## GenerateSNs

The GenerateSNs function will generate multiple serial numbers

###### Syntax

TCheckPointMultiSNGenerationResponse * GenerateSNs(

long NumberToGenerate,

long LicenseID,

long AnAuthDefID,

long AParameterValue,

long PermittedActivations,

long PermittedOverflowActivations,

BSTR ASessionID

) ;

###### Parameters

NumberToGenerate

[IN] This is a numeric field which defines the number of serial numbers to be generated.

LicenseID

[IN] This is a numeric value which defines the license ID that is associated with this Serial Number

AnAuthDefID

[IN] This is a numeric value which defines the Authorization Definition ID that is associated to this Serial Number

AParameterValue

[IN] This is a numeric value which defines a parameter if it is necessary for the Authorization Definition

PermittedActivations

[IN] This is a numeric value which defines the number of permitted activations allowed for the serial number

PermittedOverflowActivations

[IN] This is a numeric value which defines the number of overflows allowed for the serial number

ASessionID

[IN] This is the session ID of the logged in user

###### Remarks

The user must be an administrator to use this function.

Also note that this will only generate a serial numbers for you, but does not add it to database. Use AddMultiSerialNoRecords or AddMultiSerialNoRecordsXML to add the serial number to CheckPoint.

Only administrators are allowed to use this function.

###### Return Value

Returns the custom class TCheckPointMultiSNGenerationResponse. The fields of interest that is related to this method are:

- CheckPointReturnCode - this field will return a TCheckPointReturnCode.

- SNs- This field is an array of string values which contains the Serial Numbers Generated.

- ErrorMessage- If an error occurred the associated message can be found in this field.

- Success- If the function is successful then this will return true, otherwise false is returned.

###### Function Information

Exposed By Interface: | "ICheckPointService"
Exposed In ISAPI DLL: | "checkpoint.dll"